DocumentScanScreen
Displays a camera preview that detects documents and draws their boundaries.
The caller must obtain the Android camera permission before adding this composable to the composition. Use state to take a picture. Camera resources are released when this composable leaves the composition.
Parameters
Modifier applied to the camera screen.
State used to take pictures from this screen.
Whether document detection is enabled. Disabling detection does not stop the camera preview.
Flash mode used by the camera.
JPEG quality in the range 0–100.
Whether the preview fits within or fills its available bounds.
Whether taking a picture displays a shutter animation.
Color used to draw the detected document boundary.
Whether the document boundary displays auto-trigger progress while the detector reports QuadStreamAnalyzer.Status.ABOUT_TO_TRIGGER. This option does not take a picture automatically.
Called with the latest document detection result. Call ScanScreenState.takePicture when the result status is QuadStreamAnalyzer.Status.TRIGGER to implement automatic capture.
Called when a preview frame cannot be analyzed.
Called when the camera is initialized and ready to take pictures.
Called when the camera cannot be initialized.
Called when image capture starts.